package com.tinem.platform.module.starter.sdk.page;

import com.auth0.jwt.interfaces.DecodedJWT;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author fengzhihao
 * @version v1
 * @program: platform
 * @className PlatformJwt
 * @description TODO
 * @site
 * @company
 * @create 2021/12/1 19:41:45
 */
@Data
@AllArgsConstructor
public class PlatformJwt {
    DecodedJWT jwt;

    public String getUserId(){
        return jwt.getClaim("userId").asString();
    }
    public String getClientId(){
        return jwt.getClaim("client_id").asString();
    }
}
